Insert the following macros to set the pages you want to use.
The pages will appear in the order you insert them in your script.
You can also insert custom Page commands between the macros to add
custom pages. More info about custom
pages...
You can add multiple pages of certain types (for example, if you
want the user to specify multiple folders).
You will need the page ID for the Start Menu Folder page when
using the Start Menu Folder macros. The Start Menu Folder will be
stored in the specified variable.
Page Settings apply to a single page and should be set before
inserting a page macro. If you have multiple pages of one type and
you want to set a setting for all them, put the setting before each
page macro. Example:
;Add a directory page to let the user specify a plug-ins folder
;Store the folder in $PLUGINS_FOLDER
Var PLUGINS_FOLDER
!define MUI_DIRECTORYPAGE_VARIABLE $PLUGINS_FOLDER
!insertmacro MUI_PAGE_DIRECTORY
Note: There is no diference between installer and
uninstaller page settings.
General Page
Settings
MUI_PAGE_HEADER_TEXT text
Text to display on the header of the page.
MUI_PAGE_HEADER_SUBTEXT text
Subtext to display on the header of the page.
Welcome Page
Settings
MUI_WELCOMEPAGE_TITLE title
Title to display on the top of the page.
MUI_WELCOMEPAGE_TITLE_3LINES
Extra space for the title area.
MUI_WELCOMEPAGE_TEXT text
Text to display on the page. Use \r\n for a newline.
License Page
Settings
MUI_LICENSEPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_LICENSEPAGE_TEXT_BOTTOM text
Text to display on the bottom of the page.
MUI_LICENSEPAGE_BUTTON button_text
Text to display on the 'I Agree' button.
MUI_LICENSEPAGE_CHECKBOX
Display a checkbox the user has to check to agree with the license
terms.
MUI_LICENSEPAGE_CHECKBOX_TEXT text
Text to display next to the checkbox to agree with the license
terms.
MUI_LICENSEPAGE_RADIOBUTTONS
Display two radio buttons to allow the user to choose between
accepting the license terms or not.
MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_ACCEPT
text
Text to display next to the checkbox to accept the license
terms.
MUI_LICENSEPAGE_RADIOBUTTONS_TEXT_DECLINE
text
Text to display next to the checkbox to decline the license
terms.
Components Page
Settings
MUI_COMPONENTSPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_COMPONENTSPAGE_TEXT_COMPLIST text
Text to display on next to the components list.
MUI_COMPONENTSPAGE_TEXT_INSTTYPE text
Text to display on next to the installation type combo box.
MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_TITLE
text
Text to display on the of the top of the description box.
MUI_COMPONENTSPAGE_TEXT_DESCRIPTION_INFO
text
Text to display inside the description box when no section is
selected.
Directory Page
Settings
MUI_DIRECTORYPAGE_TEXT_TOP text
Text to display on top of the page.
MUI_DIRECTORYPAGE_TEXT_DESTINATION text
Text to display on the destination folder frame.
MUI_DIRECTORYPAGE_VARIABLE variable
Variable in which to store the selected folder.
Default: $INSTDIR
MUI_DIRECTORYPAGE_VERIFYONLEAVE
Does not disable the Next button when a folder is invalid but
allows you to use GetInstDirError in the leave function to handle
an invalid folder.
Start Menu Folder Page
Settings
Put the code to write the shortcuts (using CreateShortcut)
between the MUI_STARTMENU_WRITE_BEGIN and MUI_STARTMENU_WRITE_END
macros:
!insertmacro MUI_STARTMENU_WRITE_BEGIN page_id
...create shortcuts...
!insertmacro MUI_STARTMENU_WRITE_END
The page ID should be the ID of the page on which the user has
selected the folder for the shortcuts you want to write.
MUI_STARTMENUPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_STARTMENUPAGE_TEXT_CHECKBOX text
Text to display next to the checkbox to disable the Start Menu
folder creation.
MUI_STARTMENUPAGE_DEFAULTFOLDER folder
The default Start Menu Folder.
MUI_STARTMENUPAGE_NODISABLE
Do not display the checkbox to disable the creation of Start Menu
shortcuts.
MUI_STARTMENUPAGE_REGISTRY_ROOT root
MUI_STARTMENUPAGE_REGISTRY_KEY key
MUI_STARTMENUPAGE_REGISTRY_VALUENAME value_name
The registry key to store the Start Menu folder. The page will use
it to remember the users preference. You should also use for the
uninstaller to remove the Start Menu folders. Don't forget to
remove this key during uninstallation.
For the uninstaller, use the MUI_STARTMENU_GETFOLDER macro to
get the Start Menu folder:
!insertmacro MUI_STARTMENU_GETFOLDER page_id $R0
Delete "$SMPROGRAMS\$R0\Your Shortcut.lnk"
Installation Page
Settings
MUI_INSTFILESPAGE_FINISHHEADER_TEXT
text
Text to display on the header of the installation page when the
installation has been completed (won't be displayed when using a
Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).
MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT
text
Subext to display on the header of the installation page when the
installation has been completed (won't be displayed when using a
Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).
MUI_INSTFILESPAGE_ABORTHEADER_TEXT text
Text to display on the header of the installation page when the
installation has been aborted.
MUI_INSTFILESPAGE_ABORTHEADER_SUBTEXT
text
Subext to display on the header of the installation page when the
installation has been aborted.
Finish Page Settings
MUI_FINISHPAGE_TITLE title
Title to display on the top of the page.
MUI_FINISHPAGE_TITLE_3LINES
Extra space for the title area.
MUI_FINISHPAGE_TEXT text
Text to display on the page. Use \r\n for a newline.
MUI_FINISHPAGE_TEXT_LARGE
Extra space for the text area (if using checkboxes).
MUI_FINISHPAGE_BUTTON text
Text to display on the Finish button.
MUI_FINISHPAGE_TEXT_REBOOT text
Text to display on the finish page when asking for a system reboot.
Use \r\n for a newline.
MUI_FINISHPAGE_TEXT_REBOOTNOW text
Text to display next to the 'Reboot now' option button.
MUI_FINISHPAGE_TEXT_REBOOTLATER text
Text to display next to the 'Reboot later' option button.
MUI_FINISHPAGE_RUN exe_file
Application which the user can select to run using a checkbox. You
don't need to put quotes around the filename when it contains
spaces.
MUI_FINISHPAGE_RUN_TEXT text
Texts to display next to the 'Run program' checkbox.
MUI_FINISHPAGE_RUN_PARAMETERS parameters
Parameters for the application to run. Don't forget to escape
double quotes in the value (use $\").
MUI_FINISHPAGE_RUN_NOTCHECKED
Do not check the 'Run program' checkbox by default
MUI_FINISHPAGE_RUN_FUNCTION function_name
Call a function instead of executing an application (define
MUI_FINISHPAGE_RUN without parameters). You can use the function to
exectute multiple applications or you can change the checkbox name
and use it for other things.
MUI_FINISHPAGE_SHOWREADME file/url
File or website which the user can select to view using a checkbox.
You don't need to put quotes around the filename when it contains
spaces.
MUI_FINISHPAGE_SHOWREADME_TEXT text
Texts to display next to the 'Show Readme' checkbox.
MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
Do not check the 'Show Readme' checkbox by default
MUI_FINISHPAGE_SHOWREADME_FUNCTION function_name
Call a function instead of showing a file (define
MUI_FINISHPAGE_SHOWREADME without parameters). You can use the
function to show multiple files or you can change the checkbox name
and use it for other things.
MUI_FINISHPAGE_LINK link_text
Text for a link on the which the user can click to view a website
or file.
MUI_FINISHPAGE_LINK_LOCATION file/url
Website or file which the user can select to view using the link.
You don't need to put quotes around the filename when it contains
spaces.
MUI_FINISHPAGE_LINK_COLOR (color: RRGGBB hexadecimal)
Text color for the link on the Finish page.
Default: 000080
MUI_FINISHPAGE_NOREBOOTSUPPORT
Disables support for the page that allows the user to reboot the
system. Define this option to save some space if you are not using
the /REBOOTOK flag or SetRebootFlag.
Uninstall Confirm Page
Settings
MUI_UNCONFIRMPAGE_TEXT_TOP text
Text to display on the top of the page.
MUI_UNCONFIRMPAGE_TEXT_LOCATION text
Text to display next to the uninstall location text box.
Advanced Page
Settings
You can add custom code to the page functions of your Modern UI
pages. More info...